#!/usr/bin/env python2.7
#-*-coding:utf-8-*-

from sys import argv
script,filename=argv

print "we're going to erase %r."%filename
print "if you don't want that .hit ctrl+c"
print "if you want that,press return"

raw_input("?")

print "opening the file...."
target=open(filename,'w')

print "truncating the file.goodbye!"
target.truncate()

print "now i'm going to ask you for three lines."

line1=raw_input("line1:")
line2=raw_input("line2:")
line3=raw_input("line3:")

print "i am going to write these into file"
target.write(line1)
target.write('\n')
target.write(line2)
target.write('\n')
target.write(line3)
target.write('\n')

print "finally,we close it."
target.close()


